package com.knight.admin.model.base;

import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

public class BaseUser<M extends BaseUser<M>> extends Model<M> implements IBean {

	public M setId(Integer id) {
		set("id", id);
		return (M) this;
	}

	public Integer getId() {
		return get("id");
	}

	public M setUserName(String userName) {
		set("userName", userName);
		return (M) this;
	}

	public String getUserName() {
		return get("userName");
	}

	public M setPassword(String password) {
		set("password", password);
		return (M) this;
	}

	public String getPassword() {
		return get("password");
	}

	public M setCreateDate(Date createDate) {
		set("createDate", createDate);
		return (M) this;
	}

	public Date getCreateDate() {
		return get("createDate");
	}

	public M setUpdateDate(Date updateDate) {
		set("updateDate", updateDate);
		return (M) this;
	}

	public Date getUpdateDate() {
		return get("updateDate");
	}

}
